﻿<Window x:Class="WPFClock.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        Title="{Binding Source={x:Static Member=sys:Environment.MachineName}}" 
        Height="200" 
        Width="450" 
        ResizeMode="NoResize" 
        WindowStartupLocation="CenterScreen" 
        WindowStyle="ToolWindow">
    <Grid Margin="4">
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="5" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="Machine Time" VerticalAlignment="Center" FontSize="18" />
        <Rectangle Grid.Row="1" Height="3" VerticalAlignment="Center" Fill="Gray" />
        <TextBlock Grid.Row="2" Text="{Binding TheCurrenTimeString}" VerticalAlignment="Center" HorizontalAlignment="Center"  FontSize="72" />
    </Grid>
</Window>
